﻿<Window x:Class="MindTree.PerfWorkbench.Azure.Monitor.AzMonConfig"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="AzMonConfig" Height="300" Width="474">
    
    <Window.Resources>
        <DataTemplate x:Key="myHeaderTemplate">
            <StackPanel>
                <TextBlock Name="columnName" Height="15" Width="60">CounterSet</TextBlock>
                <ToolBar Height="18" Name="AzureMonToolBar" Width="100" Margin="6,2.5,5,0" >                    
                    <Button Height="15" Width="31" >
                        <Image Name="imgEditCounters" Source="icons\globe_32.png" Height="10" Width="22" ToolTip="View Counters" MouseDown="imgEditCounters_MouseDown" />
                    </Button>
                </ToolBar>
            </StackPanel>
        </DataTemplate>
        <DataTemplate x:Key="RoleHeaderTemplate">
            <StackPanel>
                <TextBlock Name="azureColumnName" Height="15" Width="60">AzureRole</TextBlock>
                <ToolBar Height="18" Name="AzureMonToolBar" Width="100" Margin="6,2.5,5,0" >
                    <Button Height="15" Width="31" >
                        <Image Source="icons\plus_48.png" Height="10" Width="22" ToolTip="Add a new CounetrSet" MouseDown="Image_MouseDown"/>
                    </Button>
                </ToolBar>
            </StackPanel>
        </DataTemplate>        
        <Style x:Key="GrayHeader" TargetType="{x:Type GridViewColumnHeader}">
            <Setter Property="Background">
                <Setter.Value>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Offset="0.0" Color="#373638" />
                        <GradientStop Offset="1.0" Color="#57595B" />
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="Foreground" Value="White" />
            <Setter Property="Padding" Value="5, 5" />
            <Setter Property="BorderThickness" Value="0" />
            <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        </Style>
    </Window.Resources>
    
    <Grid Width="454" >        
        <!-- <ListView Name="ConfigurationList" MouseLeftButtonDown="Mouse_LeftButtonDown" SelectionChanged="ConfigurationList_SelectionChanged" Width="454" Height="150" Margin="0,0,0,56" VerticalAlignment="Bottom"> -->
        <ListView Name="ConfigurationList"  Width="454" Height="150" Margin="0,0,0,56" VerticalAlignment="Bottom">
            <ListView.View>
                <GridView x:Name="configGrid" ColumnHeaderContainerStyle="{StaticResource GrayHeader}">  
                    
                </GridView>
            </ListView.View>            
            <ListView.ItemContainerStyle>
                <Style TargetType="{x:Type ListViewItem}"  >
                    <Setter Property="Height" Value="24" />
                    <Setter Property="Background" Value="#7BB3DC" />
                    <Setter Property="Foreground" Value="#000000" />
                    <Setter Property="FontSize" Value="12" />
                    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
                    <Setter Property="BorderThickness" Value="1" />
                    <Setter Property="BorderBrush" Value="Gray" />
                </Style>
            </ListView.ItemContainerStyle>
            <ListView.ItemTemplate>
                <DataTemplate></DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
        <Button Content="Save" Height="23" HorizontalAlignment="Left" Margin="119,220,0,0" Name="btnSave" VerticalAlignment="Top" Width="75" Click="btnSave_Click"/>
        <Button Content="Cancel" Height="23" HorizontalAlignment="Left" Margin="233,220,0,0" Name="btnCancel" VerticalAlignment="Top" Width="75" Click="btnCancel_Click" />
        <Label Content="Monitoring Interval: (sec)" Height="28" HorizontalAlignment="Left" Margin="0,12,0,0" Name="lblInterval" VerticalAlignment="Top" Width="145" />
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="142,12,0,0" Name="cmbBoxInterval" VerticalAlignment="Top" Width="120" >
            <ComboBoxItem>5</ComboBoxItem>
            <ComboBoxItem>10</ComboBoxItem>
            <ComboBoxItem>15</ComboBoxItem>
            <ComboBoxItem>20</ComboBoxItem>
            <ComboBoxItem>30</ComboBoxItem>
            <ComboBoxItem>60</ComboBoxItem>
        </ComboBox>
    </Grid>
</Window>
